const getRandomStr = function (count) {
    let str = '';
    for (let i = 0 ; i < count ; i ++){
        str += Math.floor(Math.random() * 10);
    }
    return str;
};
const PlayerData = function () {
    let that = {};
    //唯一识别码
    that.uniqueID = '1' + getRandomStr(6);
    //账号
    that.accountID = '2' + getRandomStr(6);
    //昵称
    that.nickName = '洪山彬爷' + getRandomStr(2);
    //头像路径
    that.avatarUrl = 'http://img5.imgtn.bdimg.com/it/u=386319321,13242164&fm=27&gp=0.jpg';
    //金币数量
    that.goldCount = 0;
    return that;
};
export default  PlayerData; //导出这个变量  const 要在别的js文件里能访问 就要导出
//module.export = PlayerData; 这样也可以   模块导出